namespace Admin2025.Domain.Events;

// 密码修改事件
public class UserPasswordChangedEvent : IDomainEvent
{
    public Guid EventId { get; }
    public Guid UserId { get; }
    public string Username { get; } = null!;
    public DateTime OccurredOn { get; }
    public Guid ChangedBy{ get; }
    public UserPasswordChangedEvent(Guid userId, string username, Guid changedBy)
    {
        EventId = Guid.NewGuid();
        UserId = userId;
        Username = username;
        ChangedBy = changedBy;
        OccurredOn = DateTime.UtcNow;
    }
}